package com.zff.rental.utils.sql.impl;

import com.zff.rental.utils.sql.FromNext;
import com.zff.rental.utils.sql.SelectNext;

/**
 * @author HCY
 */
class SelectNextImpl extends SqlContextHolder implements SelectNext {

    public SelectNextImpl(SqlContext sqlContext) {
        super(sqlContext);
    }

    @Override
    public FromNext from(String table, String tableAlias) {
        sqlContext.getFrom().from(table, tableAlias);
        return sqlContext.getFromNext();
    }
}
